package com.dx.common.table.his;

import java.sql.Timestamp;

/**
 * His_ret_prd_infoId entity. @author MyEclipse Persistence Tools
 */

public class His_ret_prd_infoId implements java.io.Serializable {

	// Fields    

	private String unq_seq_id;
	private Timestamp evt_timestamp;

	// Constructors

	/** default constructor */
	public His_ret_prd_infoId() {
	}

	/** full constructor */
	public His_ret_prd_infoId(String unq_seq_id, Timestamp evt_timestamp) {
		this.unq_seq_id = unq_seq_id;
		this.evt_timestamp = evt_timestamp;
	}

	// Property accessors

	public String getUnq_seq_id() {
		return this.unq_seq_id;
	}

	public void setUnq_seq_id(String unq_seq_id) {
		this.unq_seq_id = unq_seq_id;
	}

	public Timestamp getEvt_timestamp() {
		return this.evt_timestamp;
	}

	public void setEvt_timestamp(Timestamp evt_timestamp) {
		this.evt_timestamp = evt_timestamp;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof His_ret_prd_infoId))
			return false;
		His_ret_prd_infoId castOther = (His_ret_prd_infoId) other;

		return ((this.getUnq_seq_id() == castOther.getUnq_seq_id()) || (this.getUnq_seq_id() != null
				&& castOther.getUnq_seq_id() != null && this.getUnq_seq_id().equals(castOther.getUnq_seq_id())))
				&& ((this.getEvt_timestamp() == castOther.getEvt_timestamp()) || (this.getEvt_timestamp() != null
						&& castOther.getEvt_timestamp() != null && this.getEvt_timestamp().equals(castOther.getEvt_timestamp())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getUnq_seq_id() == null ? 0 : this.getUnq_seq_id().hashCode());
		result = 37 * result + (getEvt_timestamp() == null ? 0 : this.getEvt_timestamp().hashCode());
		return result;
	}

}